<?php defined('_JEXEC') or die('Restricted access'); ?>
<?
	$edit		= JRequest::getVar('edit',true);
	$text = intval($edit) ? JText::_( 'Edit' ) : JText::_( 'New' );
	
	JToolBarHelper::title( JText::_( 'Tambah / Edit Data RSS' ), 'generic.png' );
	JToolBarHelper::save();
	//JToolBarHelper::apply();

if ( $edit ) {
		// for existing items the button is renamed `close`
		JToolBarHelper::cancel( 'cancel', 'Close' );
	} else {
		JToolBarHelper::cancel();
	}

?>
<script language="javascript" type="text/javascript">
		var sectioncategories = new Array;
		<?php
		$i = 0;
		foreach ($this->sectioncategories as $k=>$items) {
		
			foreach ($items as $v) {
		
				echo "sectioncategories[".$i++."] = new Array( '$k','".addslashes( $v->kota_id )."','".
				addslashes( $v->nama_kota )."' );\n\t\t";

			}
		}
		?>	
		</script>



<form action="index.php" method="post" name="adminForm" id="adminForm">
<fieldset class="adminform">
<legend>Input Hotel</legend>
<table class="admintable">

<tr>
<td width="100" align="right" class="key">
Nama Propinsi:
</td>
<td>
<?php
echo $this->lists['propinsi_id'];
?>
</td>
</tr>

<tr>
<td width="100" align="right" class="key">
Nama Kota:
</td>
<td>
<?
echo $this->lists['kota'];
?>
</td>
</tr>

<tr>
<td width="100" align="right" class="key">
URL RSS :
</td>
<td>
<input class="text_area" type="text" name="url_rss"
id="url_rss" size="50" maxlength="250"
value="<?php echo $this->form->url_rss;?>" />
</td>
</tr>

</table>
</fieldset>
<input type="hidden" name="option" value="com_nv" />
<input type="hidden" name="id" value="<?php echo $this->form->id; ?>" />
<input type="hidden" name="task" value="" />
<input type="hidden" name="controller" value="form" />
<input type="hidden" name="view" value="hotel" />
</form>